Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: XPage Java User Bean and FacesContext
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Application Development
Platform: Linux server
Release: 8.5.2
Reproducible: Always

Hi,

I've been dealing with a problem all afternoon and can't find an answer or find a solution. I found on many places how to reach the xpages context objects in java (not SSJS) but i'm not able to successfully use it on my user/managed bean.

Inside my bean I'm trying to get viewScope object this way:

FacesContext context = FacesContext.getCurrentInstance();
Object o = Context.getApplication().getVariableResolver().resolveVariable(context, "viewScope");

The script stops right on first line throwing a ClassNotFoundException for FacesContext. It looks the class is not visible on the bean execution environment.

Is this supposed to happen? what am i missing here?

Thanks very much!
Jose Pinto


Feedback number WEBB8BLPM2 created by ~Sean Fezkrotexettu on 11/27/2010

Status: Open
Comments:

XPage Java User Bean and FacesConte... (~Sean Fezkrotex... 27.Nov.10)
. . not a issue (~Sean Fezkrotex... 29.Nov.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS